package org.mall.modules.message.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/***
 *@author yinxucun
 *@date 2019-11-12 16:56 
 */
@Data
@TableName("app_message")
public class AppMessage {
    @TableId(type = IdType.INPUT)
    private Long id;
    private String content;
    private String  title;
    private String creator;
    private Integer type;
    private String receiver;
    private Integer templateId;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String entitiesId;
    private Integer isRead;
    private Integer isDelete;

}
